<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
	
    <!-- Bootstrap core CSS -->
    <link href="styles/bootstrap.min.css" rel="stylesheet">
  </head>

  <body style="text-align:center;width:300px;height:450px">
	<table class="table">
	  <thead>
		<p></p>
		<tr>
		  <img src="./image/icon2.jpg" class="rounded-circle border border-primary" style="width:100px;height:100px">
		</tr>
	  </thead>
	  <tbody>
		<tr>
		  <td><h4>用户名：</h4></td>
		  <td><h4 id="userName"></h4></td>
		</tr>
		<p></p>
		<tr>
		  <td><h4>等级：</h4></td>
		  <td><h4 id="level"></h4></td>
		</tr>
		<p></p>
		<tr>
		  <td><h4>新增日期：</h4></td>
		  <td><h4 id="addDate"></h4></td>
		</tr>
		<p></p>
		<tr>
		  <td colspan="2" id="manager"></td>
		</tr>
	  </tbody>
	</table>
    <script type="text/javascript" src="js/jquery-slim.min.js"></script>
    <script type="text/javascript" src="js/popper.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/login.js"></script>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/cookie_util.js"></script>
    <script type="text/javascript" src="js/layer/layer.js"></script>
    <script type="text/javascript" src="js/json2.js"></script>
    <script type="text/javascript">
    	$(function(){
    		//var user = JSON.parse(getCookie1("user"));
    		//var userName = user.userName;
    		//var level = user.level;
    		//var addDate = user.addDate;
    		var userName = "admin";
    		var level = 1;
    		var addDate = "2018-04-23";
    		$("#userName").text(userName);
    		if(level == 1){
    			$("#level").text("用户");
    		}else if(level == 0){
    			$("#level").text("管理员");
    			$("#manager").prepend('<button type="button" class="btn btn-primary btn-lg" onclick="manage()">管理用户 &raquo;</button>');
    		}
    		$("#addDate").text(addDate);
    	});	
    
		function manage(){
			window.open("manageUser.html", "newwindow");
		}
	</script>
  </body>
</html>
